package com.wyp.config;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;

public class LoginWebAuthenticationDetails extends WebAuthenticationDetails {

    private String code;


    public LoginWebAuthenticationDetails(HttpServletRequest request) {
        super(request);
        this.code = (String) request.getParameter("code");
        request.getSession().setAttribute("code",this.code);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}

